import { lazy } from "react";
import { RouterItem } from "../Type/type";
import {
  AntOutline,
  BellOutline,
  ShopbagOutline,
  AddSquareOutline,
  BankcardOutline,
  UserOutline,
} from "antd-mobile-icons";
const Home = lazy(() => import("../pages/layout/index"));
const Login = lazy(() => import("../pages/login/index"));
const Messgae = lazy(() => import("../pages/message/index"));
const Case = lazy(() => import("../pages/case/index"));
const Shop = lazy(() => import("../pages/shop/index"));
const History = lazy(() => import("../pages/history/index"));
const My = lazy(() => import("../pages/my/index"));
const She = lazy(() => import("../pages/She/index"));
const Hui = lazy(() => import("../pages/Hui/index"));
const City = lazy(() => import("../pages/city/index"));
const Search = lazy(() => import("../pages/search/index"));
const Yuyue = lazy(() => import("../pages/yuyue/index"));
const Fuzhen = lazy(() => import("../pages/fuzhen/index"));
const Jiankangkepu = lazy(() => import("../pages/jiankangkepu/index"));
const Kaiyaomenzhen = lazy(() => import("../pages/kaiyaomenzhen/index"));
const Mydoctor = lazy(() => import("../pages/mydoctor/index"));
const Yongyaojianyi = lazy(() => import("../pages/yongyaojianyi/index"));
const Yizhenzhibo = lazy(() => import("../pages/zhibo/index"));
const Xitong = lazy(() => import("../pages/xitong/index"));
const Jia = lazy(() => import("../pages/jiage/index"));
const Yijian = lazy(() => import("../pages/yijian/index"));
const Guan = lazy(() => import("../pages/guan/index"));
const Gua = lazy(() => import("../pages/gua/index"));
const Shou = lazy(() => import("../pages/shou/index"));
const YuSer = lazy(() => import("../pages/yuSer/index"));
const YuyueCity = lazy(() => import("../pages/yuyue-city/index"));
const Anyiyuan = lazy(() => import("../pages/anyiyuan/index"));
const Ankeshi = lazy(() => import("../pages/ankeshi/index"));
const Anyisheng = lazy(() => import("../pages/anyisheng/index"));
const Neike = lazy(() => import("../pages/neike/index"));
const Weike = lazy(() => import("../pages/weike/index"));
const Pifuke = lazy(() => import("../pages/pifuke/index"));
const Nanke = lazy(() => import("../pages/nanke/index"));
const Fuchanke = lazy(() => import("../pages/fuchanke/index"));
const Myyuyueguahao = lazy(() => import("../pages/myyuyueguahao/index"));
const Doctor = lazy(() => import("../pages/doctor/index"));
const Yin = lazy(() => import("../pages/yin/index"));
const Wenzhenjilu = lazy(() => import("../pages/wenzhenjilu/index"));
const Mjs = lazy(() => import("../pages/msg-jisu/index"));
const Toforyoudeilte = lazy(() => import("../pages/toforyoudeilte/index"));
const Zheng = lazy(() => import("../pages/zhengce/index"));
const Fuwu = lazy(() => import("../pages/fuwu/index"));
const Buymedicine = lazy(() => import("../pages/Buymedicine/index"));
const BuymedicineCart = lazy(() => import("../pages/yaofangcarts/index"));
const BuymedicineDetail = lazy(
  () => import("../pages/Buymedicinedetail/index")
);
const Buymedicinepinglun = lazy(
  () => import("../pages/Buymedicinepinglun/index")
);
const CustomerService = lazy(() => import("../pages/CustomerService/index"));
const Order = lazy(() => import("../pages/order/index"));
const ZhiFa = lazy(() => import("../pages/zhifa/index"));
const ZhiFang = lazy(() => import("../pages/zhifang/index"));
const ShopSearch = lazy(() => import("../pages/shopsearch/index"));
const Menzhen = lazy(() => import("../pages/menzhen/index"));
const Kaquan = lazy(() => import("../pages/kaquan/index"));
const Shouhuo = lazy(() => import("../pages/shouhuo/index"));
const Shouhuoadd = lazy(() => import("../pages/shouhuo-add/index"));
const Activity = lazy(() => import("../pages/activity/index"));
const Suifang = lazy(() => import("../pages/suifang/index"));
const Jiankang = lazy(() => import("../pages/jiankang/index"));
const Youxuan = lazy(() => import("../pages/youxuan/index"));
const Dingdan = lazy(() => import("../pages/Dingdan/index"));
const Cate = lazy(() => import("../pages/Cate/index"));
const Nicheng = lazy(() => import("../pages/nicheng/index"));
const Huiyuanma = lazy(() => import("../pages/huiyuanma/index"));
const Huicard = lazy(() => import('../pages/huicard/index'));
const Lead = lazy(() => import("../pages/lead/index"));
const Expert = lazy(() => import("../pages/expert/index"));

export const second_router: RouterItem[] = [
  {
    path: "/",
    element: <History />,
    meta: {
      label: "就医",
      icon: <AddSquareOutline />,
    },
  },
  {
    path: "/message",
    element: <Messgae />,
    meta: {
      label: "消息",
      icon: <BellOutline />,
    },
  },
  {
    path: "/shop",
    element: <Shop />,
    meta: {
      label: "商城",
      icon: <ShopbagOutline />,
    },
  },
  {
    path: "/case",
    element: <Case />,
    meta: {
      label: "患者病例",
      icon: <BankcardOutline />,
    },
  },
  {
    path: "/my",
    element: <My />,
    meta: {
      label: "我的",
      icon: <UserOutline />,
    },
  },
];
export const routers: RouterItem[] = [
  {
    path: "/",
    element: <Home />,
    meta: {
      label: "首页",
      icon: <AntOutline />,
    },
    children: second_router,
  },
  {
    path: "/login",
    element: <Login />,
    meta: {
      label: "登录",
    },
  },
  {
    path: "/she",
    element: <She />,
    meta: {
      label: "设置",
    },
  },
  {
    path: "/hui",
    element: <Hui />,
    meta: {
      label: "会员",
    },
  },
  {
    path: "/city",
    element: <City />,
    meta: {
      label: "选择城市",
    },
  },
  {
    path: "/search",
    element: <Search />,
    meta: {
      label: "搜索",
    },
  },
  {
    path: "/yuyue",
    element: <Yuyue />,
    meta: {
      label: "预约挂号",
    },
  },
  {
    path: "/fuzhen",
    element: <Fuzhen />,
    meta: {
      label: "复诊开方",
    },
  },
  {
    path: "/jiankangkepu",
    element: <Jiankangkepu />,
    meta: {
      label: "健康科普",
    },
  },
  {
    path: "/kaiyaomenzhen",
    element: <Kaiyaomenzhen />,
    meta: {
      label: "开药门诊",
    },
  },
  {
    path: "/zhibo",
    element: <Yizhenzhibo />,
    meta: {
      label: "义诊直播",
    },
  },
  {
    path: "/xitong",
    element: <Xitong />,
    meta: {
      label: "系统消息",
    },
  },
  {
    path: "/jiage",
    element: <Jia />,
    meta: {
      label: "价格公示",
    },
  },
  {
    path: "/yijian",
    element: <Yijian />,
    meta: {
      label: "意见反馈",
    },
  },
  {
    path: "/guan",
    element: <Guan />,
    meta: {
      label: "关于我们",
    },
  },
  {
    path: "/gua",
    element: <Gua />,
    meta: {
      label: "挂号记录",
    },
  },
  {
    path: "/shou",
    element: <Shou />,
    meta: {
      label: "商品收藏",
    },
  },
  {
    path: "/yuSer",
    element: <YuSer />,
    meta: {
      label: "预约挂号",
    },
  },
  {
    path: "/yuyue-city",
    element: <YuyueCity />,
    meta: {
      label: "预约挂号",
    },
  },
  {
    path: "/anyiyuan",
    element: <Anyiyuan />,
    meta: {
      label: "按医院",
    },
  },
  {
    path: "/ankeshi",
    element: <Ankeshi />,
    meta: {
      label: "按科室",
    },
  },
  {
    path: "/anyisheng",
    element: <Anyisheng />,
    meta: {
      label: "按医生",
    },
  },
  {
    path: "/myyuyueguahao",
    element: <Myyuyueguahao />,
    meta: {
      label: "我的预约挂号列表",
    },
  },
  {
    path: "/doctor/:id",
    element: <Doctor />,
    meta: {
      label: "医生详情",
    },
  },
  {
    path: "/neike",
    element: <Neike />,
    meta: {
      label: "内科",
    },
  },
  {
    path: "/weike",
    element: <Weike />,
    meta: {
      label: "外科",
    },
  },
  {
    path: "/pifuke",
    element: <Pifuke />,
    meta: {
      label: "皮肤科",
    },
  },
  {
    path: "/nanke",
    element: <Nanke />,
    meta: {
      label: "男科",
    },
  },
  {
    path: "/fuchanke",
    element: <Fuchanke />,
    meta: {
      label: "妇产科",
    },
  },
  {
    path: "/myyuyueguahao",
    element: <Myyuyueguahao />,
    meta: {
      label: "我的预约挂号列表",
    },
  },
  {
    path: "/yin",
    element: <Yin />,
    meta: {
      label: "隐私政策",
    },
  },
  {
    path: "/mjs",
    element: <Mjs />,
    meta: {
      label: "极速问诊",
    },
  },
  {
    path: "/mydoctor",
    element: <Mydoctor />,
    meta: {
      label: "我的医生",
    },
  },
  {
    path: "/wenzhenjilu",
    element: <Wenzhenjilu />,
    meta: {
      label: "我的问诊记录",
    },
  },
  {
    path: "/yongyaojianyi",
    element: <Yongyaojianyi />,
    meta: {
      label: "我的用药记录",
    },
  },
  {
    path: "/toforyoudeilte/:id",
    element: <Toforyoudeilte />,
    meta: {
      label: "为你推荐详情",
    },
  },
  {
    path: "/zhengce",
    element: <Zheng />,
    meta: {
      label: "妙手医生隐私政策",
    },
  },
  {
    path: "/fuwu",
    element: <Fuwu />,
    meta: {
      label: "妙手医生服务协议",
    },
  },
  {
    path: "/buymedicine",
    element: <Buymedicine />,
    meta: {
      label: "我要买药",
    },
  },
  {
    path: "/buymedicineCart",
    element: <BuymedicineCart />,
    meta: {
      label: "我要买药的购物车",
    },
  },
  {
    path: "/buymedicineDetail/:id",
    element: <BuymedicineDetail />,
    meta: {
      label: "我要买药的商品详情",
    },
  },
  {
    path: "/buymedicinepinglun",
    element: <Buymedicinepinglun />,
    meta: {
      label: "我要买药的评论",
    },
  },
  {
    path: "/customerService",
    element: <CustomerService />,
    meta: {
      label: "在线客服",
    },
  },
  {
    path: "/order",
    element: <Order />,
    meta: {
      label: "订单确认",
    },
  },
  {
    path: "/zhifa",
    element: <ZhiFa />,
    meta: {
      label: "植发",
    },
  },
  {
    path: "/zhifang",
    element: <ZhiFang />,
    meta: {
      label: "脂肪",
    },
  },
  {
    path: "/shopsearch",
    element: <ShopSearch />,
    meta: {
      label: "商品搜索",
    },
  },

  {
    path: "/menzhen",
    element: <Menzhen />,
    meta: {
      label: "门诊预约",
    },
  },
  {
    path: "/kaquan",
    element: <Kaquan />,
    meta: {
      label: "我的卡券页",
    },
  },
  {
    path: "/shouhuo",
    element: <Shouhuo />,
    meta: {
      label: "收货地址",
    },
  },
  {
    path: "/shouhuoadd",
    element: <Shouhuoadd />,
    meta: {
      label: "添加收货地址",
    },
  },
  {
    path: "/activity",
    element: <Activity />,
    meta: {
      label: "活动页面",
    },
  },
  {
    path: "/suifang",
    element: <Suifang />,
    meta: {
      label: "随访计划",
    },
  },
  {
    path: "/jiankang",
    element: <Jiankang />,
    meta: {
      label: "健康档案",
    },
  },
  {
    path: "/youxuan",
    element: <Youxuan />,
    meta: {
      label: "优选好物",
    },
  },
  {
    path: "/dingdan",
    element: <Dingdan />,
    meta: {
      label: "我的订单",
    },
  },
  {
    path: "/cate",
    element: <Cate />,
    meta: {
      label: "订单页",
    },
  },
  {
    path: "/nicheng",
    element: <Nicheng />,
    meta: {
      label: "修改昵称",
    },
  },
  {
    path: "/huiyuanma",
    element: <Huiyuanma />,
    meta: {
      label: "会员码",
    },
  },
  {
    path: "/huicard",
    element: <Huicard />,
    meta: {
      label: "会员卡",
    }
  },
  {
    path: "/lead",
    element: <Lead />,
    meta: {
      label: "引导页",
    },
  },
  {
    path: "/expert",
    element: <Expert />,
    meta: {
      label: "问专家",
    },
  },
];
